/**
 * 发送消息
 * @param msg
 * @param callback
 * @returns {*}
 */
export function sendMsg(msg, callback) {
    return chrome.runtime.sendMessage(msg, callback)
}

/**
 * 监听消息
 * @param callback
 */
export function addListenerMsg(callback) {
    chrome.runtime.onMessage.addListener(callback)
}

/**
 * 打开新标签页面
 * @param url
 */
export function openNewTab(url = '') {
    window.open(url, '_blank');
}